package com.gator.desig_mode.singleton;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class Test {

  public static void main(String[] args) {

  }
}

class Singleton {

  private Singleton() {
  }

  private static class SingletonInstance {

    private static final Singleton singleton = new Singleton();

  }

  public static Singleton getInstance() {
    return SingletonInstance.singleton;
  }

}

